package com.evildog.workspace.dependencies.mybatis.util;

import com.evildog.workspace.common.util.WsAssert;
import com.evildog.workspace.dependencies.mybatis.enums.BaseStatusEnum;
import com.evildog.workspace.dependencies.mybatis.enums.MybatisCustomExceptionDesc;

public class BaseStatusValidate {

    public static void checkStatusValid(Integer status){
        WsAssert.contains(status, MybatisCustomExceptionDesc.INVALID_STATUS,
                BaseStatusEnum.IS_ABLE.getStatus(), BaseStatusEnum.DISABLED.getStatus());
    }
}
